<script setup lang="ts">
	import { h } from 'vue';
	defineOptions({
		//组件名称
		name: 'LessUsage',
		//是否继承属性,class style id 等
		inheritAttrs: false,
	});
	import { getCurrentInstance, ref, toRefs } from 'vue';
	import { ElButton, ElTag } from 'element-plus';


	//响应式解构
	const obj = ref({ num: 10000 });
	const { num } = toRefs(obj.value);
	num.value = 20000;

	//获取当前组件实例
	const instance = getCurrentInstance();
</script>
<template>
	<fieldset>
		<legend>
		</legend>
		<el-button @click="console.log(instance)" type="primary">
			打印this
		</el-button>
	</fieldset>
</template>
